<div>
    <div class="ibox">
        <div class="ibox-title">
            <h5>
                <vc:i18n name="车位申请" namespace="addParkingSpaceApply"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_goBack()">
                    <i class="fa fa-close"></i>返回
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <div class="form-group row">
                <label class="col-sm-2 col-form-label text-right">
                    <vc:i18n name="车牌号" namespace="addParkingSpaceApply"></vc:i18n>
                </label>
                <div class="col-sm-4">
                    <input v-model="addParkingSpaceApplyInfo.carNum" type="text"
                        :placeholder="vc.i18n('必填，请填写车牌号','addParkingSpaceApply')" class="form-control">
                </div>
                <label class="col-sm-2 col-form-label text-right">
                    <vc:i18n name="汽车品牌" namespace="addParkingSpaceApply"></vc:i18n>
                </label>
                <div class="col-sm-4">
                    <input v-model="addParkingSpaceApplyInfo.carBrand" type="text"
                        :placeholder="vc.i18n('必填，请填写汽车品牌','addParkingSpaceApply')" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label text-right">
                    <vc:i18n name="车辆类型" namespace="addParkingSpaceApply"></vc:i18n>
                </label>
                <div class="col-sm-4">
                    <select class="custom-select" v-model="addParkingSpaceApplyInfo.carType">
                        <option selected disabled value="">
                            {{vc.i18n('必填，请选择车辆类型','addParkingSpaceApply')}}
                        </option>
                        <option value="9901">{{vc.i18n('家用小汽车','addParkingSpaceApply')}}</option>
                        <option value="9902">{{vc.i18n('客车','addParkingSpaceApply')}}</option>
                        <option value="9903">{{vc.i18n('货车','addParkingSpaceApply')}}</option>
                    </select>
                </div>
                <label class="col-sm-2 col-form-label text-right">
                    <vc:i18n name="颜色" namespace="addParkingSpaceApply"></vc:i18n>
                </label>
                <div class="col-sm-4">
                    <input v-model="addParkingSpaceApplyInfo.carColor" type="text"
                        :placeholder="vc.i18n('必填，请填写颜色','addParkingSpaceApply')" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label text-right">
                    <vc:i18n name="申请人" namespace="addParkingSpaceApply"></vc:i18n>
                </label>
                <div class="col-sm-3">
                    <input v-model="addParkingSpaceApplyInfo.applyPersonName" type="text"
                        :placeholder="vc.i18n('必填，请填写申请人','addParkingSpaceApply')" class="form-control">
                </div>
                <div class="col-sm-1">
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_openChooseOwner()">选择业主
                    </button>
                </div>
                <label class="col-sm-2 col-form-label text-right">
                    <vc:i18n name="申请人电话" namespace="addParkingSpaceApply"></vc:i18n>
                </label>
                <div class="col-sm-4">
                    <input v-model="addParkingSpaceApplyInfo.applyPersonLink" type="text"
                        :placeholder="vc.i18n('必填，请填写申请人电话','addParkingSpaceApply')" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label text-right">
                    <vc:i18n name="备注" namespace="addParkingSpaceApply"></vc:i18n>
                </label>
                <div class="col-sm-4">
                    <textarea v-model="addParkingSpaceApplyInfo.remark"
                        :placeholder="vc.i18n('选填，请填写备注','addParkingSpaceApply')" class="form-control">
                                    </textarea>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12 text-right">
                    <button type="button" class="btn btn-warning " style="margin-right:20px;" @click="_goBack()">
                        <vc:i18n name="返回" namespace="addParkingSpaceApply"></vc:i18n>
                    </button>
                    <button class="btn btn-primary" type="button" v-on:click="saveParkingSpaceApplyInfo()"><i
                            class="fa fa-check"></i>&nbsp;提交
                    </button>
                </div>
            </div>
            <vc:create path="property/searchOwner" emitChooseOwner="viewOwnerInfo" emitLoadData="viewOwnerInfo">
            </vc:create>
        </div>
    </div>
</div>